<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="0">
    <title>预约体检</title>
    <link rel="stylesheet" href="static/css/style.css">
    <link rel="stylesheet" href="static/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="static/css/styleoneadd.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-lans ">
        <div class="layui-logo layui-logo-sy"><img src="static/images/logo6.png" class="layui-logo-icon"/></div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left ">
            <!--<li class="layui-nav-item layui-this"><a href="./home/index.html" target="header-t">首页</a></li>-->
            <li class="layui-nav-item"><a href="que.html" target="header-t">首页</a></li>
            <li class="layui-nav-item"><a href="./user/index.html" target="header-t">用户管理</a></li>
            <li class="layui-nav-item"><a href="./order/index.html" target="header-t">订单管理</a></li>
            <li class="layui-nav-item layui-this"><a href="./organization/index.html" target="header-t">体检机构管理</a></li>
            <li class="layui-nav-item"><a href="./salesContract/index.html" target="header-t">销售合同管理</a></li>
            <li class="layui-nav-item"><a href="./system/index.html" target="header-t">系统管理</a></li>
        </ul>
        <ul class="layui-layout-right layui-rigth-admin">
            <li class="layui-nav-item layui-right-width1">
                <a href="javascript:;" >
                    <i class="layui-icon layui-icon2">&#xe66f;</i>
                    <label id="userInfoName"></label>
                </a>
            </li>
            <li class="layui-nav-item layui-right-width1">
                <a href="javascript:doLogout();" style="position: relative;top:2px;">退出</a>
            </li>
        </ul>
    </div>

    <div class="layui-fluid  layui-can-pad order-main-sty">
        <!-- 内容主体区域 -->
        <iframe name="header-t" src="./organization/index.html" style="width: 100%;height:100%;border: none;"></iframe>
        <!--<iframe name="header-t" src="./home/index.html" style="width: 100%;height:100%;border: none;"></iframe>-->
        <!-- 内容主体区域 -->
    </div>

    <!-- 底部固定区域 -->
    <div class="layui-row layui-footer-y">
        <label>Copyright © 2018 掌心科技（苏州）有限公司版权所有</label>
    </div>
</div>

<script src="static/plugins/layui/layui.js"></script>
<script src="static/js/jquery.min.js"></script>
<script src="static/js/app/consts/consts.js"></script>
<script src="static/js/app/util/common.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['form','layer', 'element'], function(){
        var element = layui.element;

        $(function () {
            $.ajax(
                {
                    url :"/loadUserInfo",
                    data:{},
                    async:false,
                    type : 'POST',
                    dataType : 'json',
                    success : function(dataMsg){
                        console.log(dataMsg);
                        if(dataMsg.state == 1){
                            var username = dataMsg.data;
                            $('#userInfoName').html("欢迎 : " + username);
                        }else {
                            layer.msg(dataMsg.message);
                        }
                    },
                    error : function(err){
                    }
                }
            )
        })
    });
</script>
</body>
</html>